import SyntaxParser
#import DiagMatrix
from time import strftime
from DatabaseConnector import connection

if __name__ == "__main__":
    
    cursor = connection.cursor()      
    cursor.execute("SELECT p.`DOB` FROM hosrep.patient_table p")
    for tuple in cursor:
        if tuple[0] <> None:
            print SyntaxParser.transformDOBtoAge(str(tuple[0]))